/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package framework;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;


/**
 *
 * @author bryan
 */
public class GMouseManager implements MouseMotionListener, MouseListener{
   public static boolean PRESS = false;
   public static int X;
   public static int Y;
   
   @Override
   public void mouseDragged(MouseEvent e) {
//      throw new UnsupportedOperationException("Not supported yet.");
      
   }

   @Override
   public void mouseMoved(MouseEvent e) {
//      throw new UnsupportedOperationException("Not supported yet.");
//      System.out.println(e.getX());
      GMouseManager.X = e.getX();
      GMouseManager.Y = e.getY();
   }

   @Override
   public void mouseClicked(MouseEvent e) {
//      System.out.println("CLICK");
//      throw new UnsupportedOperationException("Not supported yet.");
   }

   @Override
   public void mousePressed(MouseEvent e) {
//      throw new UnsupportedOperationException("Not supported yet.");
      GMouseManager.PRESS = true;
      
   }

   @Override
   public void mouseReleased(MouseEvent e) {
//      throw new UnsupportedOperationException("Not supported yet.");
      GMouseManager.PRESS = false;
   }

   @Override
   public void mouseEntered(MouseEvent e) {
//      throw new UnsupportedOperationException("Not supported yet.");
      
   }

   @Override
   public void mouseExited(MouseEvent e) {
//      throw new UnsupportedOperationException("Not supported yet.");
   }
   
}
